import { Component, OnInit } from '@angular/core';
import {PersonalMessage} from "../entity/PersonalMessage";
import {UserService} from "../service/user.service";
import {ActivatedRoute, Params, Router} from "@angular/router";
import {Subject} from "rxjs";
@Component({
  selector: 'personal_message',
  templateUrl: './personal_profile.html',

})
export class UserMessageComponent implements OnInit {
  private subject = new Subject<any>();
  constructor(
    private activatedRouter: ActivatedRoute,
    public router:Router) { }

  ngOnInit() {



  }


  public FollowMove(){
    document.getElementById("join").removeAttribute("class");
    document.getElementById("follow").setAttribute("class","active");
    this.router.navigate(['/personal/personalFollow/',{id:sessionStorage.getItem("personInfoId"), pageNo: 0}]);

  }
  public JoinMove(){
    this.router.navigate(['/personal/personalJoin/',{id:sessionStorage.getItem("personInfoId"), pageNo: 0}]);

    document.getElementById("follow").removeAttribute("class");
    document.getElementById("join").setAttribute("class","active");

  }

}
